package com.kanche.bigbaby.activity;

import android.view.LayoutInflater;
import android.view.MenuItem;
import android.widget.TextView;

import com.kanche.bigbaby.R;
import com.kanche.bigbaby.support.base.BaseToolbarActivity;
import com.kanche.bigbaby.support.flowlayout.FlowLayout;

/**
 * Created by Chenshao_Young on 15/5/22.
 */
public class VehicleDetailsActivity extends BaseToolbarActivity {

    FlowLayout flowLayout;

    String[] mVals = null;


    @Override
    protected void initViewAndListenerAndData() {
        initToolbar();
        toolbar.setTitle("车辆详情");

        flowLayout = justFindIt(R.id.flowlayout);
        mVals = getResources().getStringArray(R.array.flowlayout_tv);

        for (int i = 0; i < mVals.length; i++)
        {
            TextView tv = (TextView) LayoutInflater.from(this).inflate(R.layout.tv, flowLayout, false);
            tv.setText(mVals[i]);
            flowLayout.addView(tv);
        }

    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {

        return super.onOptionsItemSelected(item);
    }
    @Override
    protected int getContentViewId() {
        return R.layout.activity_vehicle_details;
    }
}
